import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useAuthStore = defineStore(
  'useAuthStore',
  () => {
    const token = ref('')

    return {
      token,
    }
  },
  {
    persist: {
      enabled: true,
      strategies: [
        {
          storage: localStorage,
          paths: ['token'],
        },
      ],
    },
  },
)
